package main.model;

import y.base.Edge;
import y.base.Node;

/**
 * bean holds the information for tracing a path in a Steiner tree.
 * 
 * @author YuanAn
 *
 */
public class SteinerTreePathEle {
	
	private String node; //the current node corresponding to the element
	private Edge edge; // the incident edge to the current node
	private SteinerTreePathEle previous; // the previous element leading to this one
	
	public SteinerTreePathEle(String n, Edge e, SteinerTreePathEle p){
		node = n;
		edge = e;
		previous = p;
	}
	
	//getters
	
	public String getCurrentNode(){
		return node;
	}
	
	public Edge getIncidentEdge(){
		return edge;
	}
	
	public SteinerTreePathEle getPreviousElement(){
		return previous;
	}

}
